<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>Title</title>
        <script src="../js/jquery-3.4.1.min.js"></script>
        <script>
            $(function () {
                $("#btn").click(function(){
                    $("img").animate({
                        "margin-left":"700px"
                    },2000,function(){
                       $("img").animate({
                           "margin-top":"300px"
                       },2000,function(){
                            $("img").animate({
                                "width":"400px",
                                "height":"400px"

                            },2000,function () {
                                $("img").animate({
                                    "width":"0px",
                                    "height":"0px"

                                },2000,function(){
                                    alert("执行完毕");
                                });
                            });
                       });
                    });
                });
            });
        </script>
    </head>
    <body>
        <input type="button" value="走你" id="btn">
        <br>
        <img src="../images/aa.gif" alt="">
    </body>
</html>